using System.Collections.Generic;
using CYZHAPI.Entity;
using CYZHAPI.IRepository;
using CYZHAPI.IRepository.IService;

namespace CYZHAPI.Repository.Service
{
    public class AscService : IAscService
    {
        private IAscRep _AscRep;
        public AscService(IAscRep ascRep){
            _AscRep = ascRep;
        }

        public bool Delete(long key)
        {
            return _AscRep.delete(key);
        }

        public List<AscModel> GetList(string sWhere)
        {
            return _AscRep.GetList(sWhere);
        }

        public bool insert(string TableName, List<AscModel> itemModel)
        {
           return  _AscRep.insert(TableName, itemModel);
        }

        public bool update(long key, AscModel itemModel)
        {
            return _AscRep.update(key,itemModel);
        }
        public decimal degetNextSecquece(string secName){
            return _AscRep.degetNextSecquece(secName);
        }
    }
}